package org.dromara.stock.domain.vo;

import java.math.BigDecimal;
import org.dromara.stock.domain.StockInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 股票详情视图对象 stk_stock_info
 *
 * @author dongfs
 * @date 2024-06-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = StockInfo.class)
public class StockInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 编码
     */
    @ExcelProperty(value = "编码")
    private String code;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * GP(股票),ZS(指数)
     */
    @ExcelProperty(value = "GP(股票),ZS(指数)")
    private String type;

    /**
     * 实时价格
     */
    @ExcelProperty(value = "实时价格")
    private BigDecimal currentPrice;

    /**
     * 开盘价
     */
    @ExcelProperty(value = "开盘价")
    private BigDecimal openPrice;

    /**
     * 收盘价
     */
    @ExcelProperty(value = "收盘价")
    private BigDecimal closePrice;

    /**
     * 最高价
     */
    @ExcelProperty(value = "最高价")
    private BigDecimal highPrice;

    /**
     * 开盘截至目前最低价
     */
    @ExcelProperty(value = "开盘截至目前最低价")
    private BigDecimal lowPrice;

    /**
     * 开盘后价格变化
     */
    @ExcelProperty(value = "开盘后价格变化")
    private BigDecimal changePrice;

    /**
     * 价格变化,单位为百分比
     */
    @ExcelProperty(value = "价格变化,单位为百分比")
    private BigDecimal changePercent;

    /**
     * 换手率 单位百分比
     */
    @ExcelProperty(value = "换手率 单位百分比")
    private BigDecimal turnoverRate;

    /**
     * 成交量 单位手
     */
    @ExcelProperty(value = "成交量 单位手")
    private Long volume;

    /**
     * 总市值 单位亿
     */
    @ExcelProperty(value = "总市值 单位亿")
    private Long totalWorth;


}
